<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('Store/index')}">店铺列表</a></li>
        </ul>
        <form class="well form-search js-ajax-form" method="post" action="{:U('Store/index')}">
            店铺类型：
            <select name="stype" style="width: 130px;">
                <foreach name="stype" item="vo">
                    <option <if condition="(I('param.stype') eq $vo['id'])" >selected</if> value="{$vo.id}">{$vo.name}</option>
                </foreach>
            </select>
            查询类型：
            <select name="search" style="width: 130px;">
                <foreach name="search" item="vo">
                    <option <if condition="(I('param.search') eq $vo['id'])" >selected</if> value="{$vo.id}">{$vo.name}</option>
                </foreach>
            </select>
            <input type="text" name="keyword" style="width: 90px;" value="{:I('param.keyword')}" placeholder="查询内容...">
            更新时间：
            <input type="text" name="start_time" class="js-date" value="{:I('param.start_time')}" style="width: 90px;" autocomplete="off"> ~
            <input type="text" name="end_time" class="js-date"  value="{:I('param.end_time')}" style="width: 90px;" autocomplete="off">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <if condition="$count" >共查询到 {$count} 条数据</if>


        </form>
            <div class="pagination">{$page}</div>
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                    	<th width="40">ID</th>
                        <th>店铺名称</th>
                        <th>子名称</th>
                        <th>店铺地址</th>
                        <th>店铺类型</th>
                        <th>店铺状态</th>
                        <th width="120">创建时间</th>
                        <th width="30">操作</th>
                    </tr>
                </thead>
                <foreach name="stores" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.title}</td>
                        <td>{$vo.title_branch}</td>
                        <td>{$vo.address}</td>
                        <td>{$stype[$vo['stype']]['name']}</td>
                        <td>{$status[$vo['status']+1]['name']}</td>
                        <td>{$vo.add_time}</td>
                        <td>
							<a href="{:U('Store/edit', array('id'=>$vo['id']))}">{:L('EDIT')}</a>
						</td>
                    </tr>
                </foreach>
                <thead>
                    <tr>
                    	<th width="40">ID</th>
                        <th>店铺名称</th>
                        <th>子名称</th>
                        <th>店铺地址</th>
                        <th>店铺类型</th>
                        <th>店铺状态</th>
                        <th width="120">创建时间</th>
                        <th width="30">操作</th>
                    </tr>
                </thead>
            </table>
            <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>